package main

import (
	"encoding/json"
	"fmt"
)

func main() {
	fmt.Println("hello, Go world")
	type a struct {
		Lat float64 `json:"ase"`
	}

	abc := a{123}

	str, _ := json.Marshal(abc)
	fmt.Printf(string(str))

	type response2 struct {
		Page   int      `json:"page"`
		Fruits []string `json:"fruits"`
	}

	res2D := response2{
		1,
		[]string{"apple", "peach", "pear"}}
	res2B, _ := json.Marshal(res2D)
	fmt.Println(string(res2B))
}
